package com.example.core.utils;

import android.content.Context;

import com.example.core.BaseApplication;

public class TestJava {

    public static void main(String[] args) {

        //java中访问currentApplication
//        Context context = BaseApplication.getCurrentApplication();//优化去掉方法现在java中访问不到
//        Context context = BaseApplication.Companion.getCurrentApplication();//要通过Companion才能访问到默认生成的get方法获取属性
//        Context context = BaseApplication.getCurrentApplication();//添加@JvmStatic注解后get获取属性，但这里还是不能象kotlin中一样直接访问属性名
        Context context = BaseApplication.currentApplication();//添加 @get:JvmName("currentApplication")注解后能象kotlin中一样直接访问属性名

    }
}
